package com.beijiteshop.shop.view

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.viewpager.widget.ViewPager

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/4 10:30
 * @Description 不可左右滑动的ViewPager
 */
class NoScrollViewPager : ViewPager {
    constructor(context: Context) : super(context)

    constructor(context: Context,attrs: AttributeSet?): super(context,attrs)

    override fun onTouchEvent(ev: MotionEvent?): Boolean {
        return false
    }

    override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean {
        return false
    }
}